package com.hqyj.springBoot.modules.account.entity;



import com.hqyj.springBoot.modules.common.entity.AbstractEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;

/**
 * @Description Resource
 * @Author HymanHu
 * @Date 2021/8/22 10:13
 */
@Entity
@Table(name="account_resource")
public class Resource extends AbstractEntity {
    private String permit;
    @Transient
    private List<Role> roles;

    public String getPermit() {
        return permit;
    }

    public void setPermit(String permit) {
        this.permit = permit;
    }

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }
}
